package com.bbcloud.dao;
import com.bbcloud.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKeyWithBLOBs(User record);

    int updateByPrimaryKey(User record);

    int checkAccount(String account);

    User selectLogin(@Param("account") String account, @Param("password") String password);

    User getUserInfo(@Param("account") String account);

    User selectUser(@Param("userId") String userId);

    int updatePasswordByAccount(@Param("account") String account, @Param("password") String password);

    int isHaveInvitationCode(@Param("invitationCode")String invitationCode);

}